<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title><%= @blog.title %></title>
    <%= javascript_include_merged :base %>
    <%= stylesheet_link_merged :base, :media => "all" %>
    <%= auto_discovery_link_tag(:rss, :controller => '/blog/posts', :action => 'feed') %>
    <%= stylesheet_link_tag "jquery_ui/ui.all" %>
  </head>
  <body>
    <div class="head_bar">
      <div class="nav">
        <%= link_to @blog.title, blog_posts_path %>
      </div>
      <div class="info">
        <span><%= @blog.signature %></span>
        <%= link_to "rss", feed_blog_posts_path %>
      </div>
    </div>

    <div class="wrapper">
      <div class="posts_container">
        <%= @content_for_layout %>
      </div>

      <div class="side_bar">

        <div class="friends">
          <h3>My Friends</h3>
          <ul>
            <% @friend_blogs.each do |fb| %>
            <li><%= link_to fb.name, fb.url, :target => '_blank', :title => fb.desc %></li>
            <% end %>
          </ul>
        </div>

        <div class="in_the_past">
          <h3>In The Past</h3>
          <ul>
            <% @date_list.each do |date| %>
            <li><%= link_to date, list_blog_posts_path(:date => date) %></li>
            <% end %>
          </ul>
        </div>
      </div>
      <br clear="all"/>
    </div>

    <div class="foot_bar">
      <span>This website is supported by
        <%= link_to 'Ruby', 'http://www.ruby-lang.org/en/', :target => '_blank'%>, 
        <%= link_to 'Rails', 'http://www.rubyonrails.org', :target => '_blank' %>, 
        <%= link_to 'Vim', 'http://www.vim.org/', :target => '_blank'%>, 
        and <%= link_to 'Mac', 'http://www.apple.com/mac/', :target => '_blank'%>. 
      </span>
    </div>

    <div id="dialog">
    </div>
  </body>
</html>
